package com.tianxin.workbao.workBao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by hacker on 2017/8/10.
 */
@Entity
public class Contract implements Serializable {
    //0 未审核 1审核不过 2审核通过，正在执行 3执行完毕 4作废
    @Transient
    public static final Integer CONTRACT_STATUS_WSH = 0;
    @Transient
    public static final Integer CONTRACT_STATUS_SHBG = 1;
    @Transient
    public static final Integer CONTRACT_STATUS_ZXZ = 2;
    @Transient
    public static final Integer CONTRACT_STATUS_ZXWB = 3;
    @Transient
    public static final Integer CONTRACT_STATUS_ZF = 4;
    @Transient
    //  1出 2入
    public static final Integer CONTRACT_CPTYPE_IN = 2;
    @Transient
    public static final Integer CONTRACT_CPTYPE_OUT = 1;
    @Transient
    //1原发净重 2收货净重  3原发净重减扣吨 4收货净重减扣吨 settlement type
    public static final Integer SETELEMENT_TYPE_YFJZ = 1;
    @Transient
    public static final Integer SETELEMENT_TYPE_SHJZ = 2;
    @Transient
    public static final Integer SETELEMENT_TYPE_YFJZJKD = 3;
    @Transient
    public static final Integer SETELEMENT_TYPE_SHJZJKD = 4;

    //是否按化验指标进行奖罚 0 不 1 是
    @Transient
    public static final Integer IS_TESTPAP = 1; @Transient
    public static final Integer NO_TESTPAP = 0;
    private static final long serialVersionUID = 1656463833143103538L;


    //下面这几个字段是为拉前台 显示而加的，数据库中没有的
    @Property
    private Float premoney;
    @Property
    private Float prereceivablemoney;
    @Property
    private Float prepayablemoney;
    @Property
    private int ispre;
@Id
    private long id;
    @Property
    private String ctnum;
    @Property
    private String otherctnum;
    @Property
    private Integer adduserid;
    @Property
    private String addusername;
    @Property
    private Integer adduserorgid;
    @Property
    private String salername;
    @Property
    private String salerabbreviation;
    @Property
    private Integer salerid;
    @Property
    private String buyername;
    @Property
    private String buyerabbreviation;
    @Property
    private Integer buyerid;
    @Property
    private Date addtime;
    @Property
    private Date signdate;
    @Property
    private String receivecompany;
    @Property
    private Integer receivecompanyid;
    @Property
    private String sendaddress;
    @Property
    private String receiveaddress;
    @Property
    private String coaltype;
    @Property
    private Integer coaltypeid;
    @Property
    private Integer cttype;
    @Property
    private String cttypename;
    @Property
    private Float weight;
    @Property
    private Float totalmoney;
    @Property
    private Float surplusweight;
    @Property
    private Float surplusmoney;
    @Property
    private Integer flag;
    @Property
    private Integer transcompanyid;
    @Property
    private Integer transpaytype;
    @Property
    private String transcompany;
    @Property
    private Integer pid;
    @Property
    private String pnum;
    @Property
    private Integer invoicetype;
    @Property
    private Integer isaddtax;
    @Property
    private Float cashmoney;
    @Property
    private String affixtype;
    @Property
    private String affixurl;
    @Property
    private String salesman;
    @Property
    private Integer salesmanid;
    @Property
    private Integer iscoalcheck;
    @Property
    private Date auditdatetime;
    @Property
    private String auditusername;
    @Property
    private Integer audituserid;
    @Property
    private Float rationallossweight;
    @Property
    private String rationallosstype;
    @Property
    private Integer ctpaytype;
    @Property
    private String payremark;
    @Property
    private Float lossweight;
    @Property
    private Integer losstype;
    @Property
    private Integer settlementtype;
    @Property
    private Integer ctclassify;
    @Property
    private Integer salecontroltype;
    @Property
    private Float totalreceivemoney;
    @Property
    private Float receivablemoney;
    @Property
    private Float totalpaymoney;
    @Property
    private Float payablemoney;
    @Property
    private String remark;
    @Property
    private Integer istestrap;
    @Property
    private Integer status;
    @Property
    private Integer isis;
    public Integer getIsis() {
        return this.isis;
    }
    public void setIsis(Integer isis) {
        this.isis = isis;
    }
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getIstestrap() {
        return this.istestrap;
    }
    public void setIstestrap(Integer istestrap) {
        this.istestrap = istestrap;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Float getPayablemoney() {
        return this.payablemoney;
    }
    public void setPayablemoney(Float payablemoney) {
        this.payablemoney = payablemoney;
    }
    public Float getTotalpaymoney() {
        return this.totalpaymoney;
    }
    public void setTotalpaymoney(Float totalpaymoney) {
        this.totalpaymoney = totalpaymoney;
    }
    public Float getReceivablemoney() {
        return this.receivablemoney;
    }
    public void setReceivablemoney(Float receivablemoney) {
        this.receivablemoney = receivablemoney;
    }
    public Float getTotalreceivemoney() {
        return this.totalreceivemoney;
    }
    public void setTotalreceivemoney(Float totalreceivemoney) {
        this.totalreceivemoney = totalreceivemoney;
    }
    public Integer getSalecontroltype() {
        return this.salecontroltype;
    }
    public void setSalecontroltype(Integer salecontroltype) {
        this.salecontroltype = salecontroltype;
    }
    public Integer getCtclassify() {
        return this.ctclassify;
    }
    public void setCtclassify(Integer ctclassify) {
        this.ctclassify = ctclassify;
    }
    public Integer getSettlementtype() {
        return this.settlementtype;
    }
    public void setSettlementtype(Integer settlementtype) {
        this.settlementtype = settlementtype;
    }
    public Integer getLosstype() {
        return this.losstype;
    }
    public void setLosstype(Integer losstype) {
        this.losstype = losstype;
    }
    public Float getLossweight() {
        return this.lossweight;
    }
    public void setLossweight(Float lossweight) {
        this.lossweight = lossweight;
    }
    public String getPayremark() {
        return this.payremark;
    }
    public void setPayremark(String payremark) {
        this.payremark = payremark;
    }
    public Integer getCtpaytype() {
        return this.ctpaytype;
    }
    public void setCtpaytype(Integer ctpaytype) {
        this.ctpaytype = ctpaytype;
    }
    public String getRationallosstype() {
        return this.rationallosstype;
    }
    public void setRationallosstype(String rationallosstype) {
        this.rationallosstype = rationallosstype;
    }
    public Float getRationallossweight() {
        return this.rationallossweight;
    }
    public void setRationallossweight(Float rationallossweight) {
        this.rationallossweight = rationallossweight;
    }
    public Integer getAudituserid() {
        return this.audituserid;
    }
    public void setAudituserid(Integer audituserid) {
        this.audituserid = audituserid;
    }
    public String getAuditusername() {
        return this.auditusername;
    }
    public void setAuditusername(String auditusername) {
        this.auditusername = auditusername;
    }
    public Date getAuditdatetime() {
        return this.auditdatetime;
    }
    public void setAuditdatetime(Date auditdatetime) {
        this.auditdatetime = auditdatetime;
    }
    public Integer getIscoalcheck() {
        return this.iscoalcheck;
    }
    public void setIscoalcheck(Integer iscoalcheck) {
        this.iscoalcheck = iscoalcheck;
    }
    public Integer getSalesmanid() {
        return this.salesmanid;
    }
    public void setSalesmanid(Integer salesmanid) {
        this.salesmanid = salesmanid;
    }
    public String getSalesman() {
        return this.salesman;
    }
    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }
    public String getAffixurl() {
        return this.affixurl;
    }
    public void setAffixurl(String affixurl) {
        this.affixurl = affixurl;
    }
    public String getAffixtype() {
        return this.affixtype;
    }
    public void setAffixtype(String affixtype) {
        this.affixtype = affixtype;
    }
    public Float getCashmoney() {
        return this.cashmoney;
    }
    public void setCashmoney(Float cashmoney) {
        this.cashmoney = cashmoney;
    }
    public Integer getIsaddtax() {
        return this.isaddtax;
    }
    public void setIsaddtax(Integer isaddtax) {
        this.isaddtax = isaddtax;
    }
    public Integer getInvoicetype() {
        return this.invoicetype;
    }
    public void setInvoicetype(Integer invoicetype) {
        this.invoicetype = invoicetype;
    }
    public String getPnum() {
        return this.pnum;
    }
    public void setPnum(String pnum) {
        this.pnum = pnum;
    }
    public Integer getPid() {
        return this.pid;
    }
    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public String getTranscompany() {
        return this.transcompany;
    }
    public void setTranscompany(String transcompany) {
        this.transcompany = transcompany;
    }
    public Integer getTranspaytype() {
        return this.transpaytype;
    }
    public void setTranspaytype(Integer transpaytype) {
        this.transpaytype = transpaytype;
    }
    public Integer getTranscompanyid() {
        return this.transcompanyid;
    }
    public void setTranscompanyid(Integer transcompanyid) {
        this.transcompanyid = transcompanyid;
    }
    public Integer getFlag() {
        return this.flag;
    }
    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    public Float getSurplusmoney() {
        return this.surplusmoney;
    }
    public void setSurplusmoney(Float surplusmoney) {
        this.surplusmoney = surplusmoney;
    }
    public Float getSurplusweight() {
        return this.surplusweight;
    }
    public void setSurplusweight(Float surplusweight) {
        this.surplusweight = surplusweight;
    }
    public Float getTotalmoney() {
        return this.totalmoney;
    }
    public void setTotalmoney(Float totalmoney) {
        this.totalmoney = totalmoney;
    }
    public Float getWeight() {
        return this.weight;
    }
    public void setWeight(Float weight) {
        this.weight = weight;
    }
    public String getCttypename() {
        return this.cttypename;
    }
    public void setCttypename(String cttypename) {
        this.cttypename = cttypename;
    }
    public Integer getCttype() {
        return this.cttype;
    }
    public void setCttype(Integer cttype) {
        this.cttype = cttype;
    }
    public Integer getCoaltypeid() {
        return this.coaltypeid;
    }
    public void setCoaltypeid(Integer coaltypeid) {
        this.coaltypeid = coaltypeid;
    }
    public String getCoaltype() {
        return this.coaltype;
    }
    public void setCoaltype(String coaltype) {
        this.coaltype = coaltype;
    }
    public String getReceiveaddress() {
        return this.receiveaddress;
    }
    public void setReceiveaddress(String receiveaddress) {
        this.receiveaddress = receiveaddress;
    }
    public String getSendaddress() {
        return this.sendaddress;
    }
    public void setSendaddress(String sendaddress) {
        this.sendaddress = sendaddress;
    }
    public Integer getReceivecompanyid() {
        return this.receivecompanyid;
    }
    public void setReceivecompanyid(Integer receivecompanyid) {
        this.receivecompanyid = receivecompanyid;
    }
    public String getReceivecompany() {
        return this.receivecompany;
    }
    public void setReceivecompany(String receivecompany) {
        this.receivecompany = receivecompany;
    }
    public Date getSigndate() {
        return this.signdate;
    }
    public void setSigndate(Date signdate) {
        this.signdate = signdate;
    }
    public Date getAddtime() {
        return this.addtime;
    }
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
    public Integer getBuyerid() {
        return this.buyerid;
    }
    public void setBuyerid(Integer buyerid) {
        this.buyerid = buyerid;
    }
    public String getBuyerabbreviation() {
        return this.buyerabbreviation;
    }
    public void setBuyerabbreviation(String buyerabbreviation) {
        this.buyerabbreviation = buyerabbreviation;
    }
    public String getBuyername() {
        return this.buyername;
    }
    public void setBuyername(String buyername) {
        this.buyername = buyername;
    }
    public Integer getSalerid() {
        return this.salerid;
    }
    public void setSalerid(Integer salerid) {
        this.salerid = salerid;
    }
    public String getSalerabbreviation() {
        return this.salerabbreviation;
    }
    public void setSalerabbreviation(String salerabbreviation) {
        this.salerabbreviation = salerabbreviation;
    }
    public String getSalername() {
        return this.salername;
    }
    public void setSalername(String salername) {
        this.salername = salername;
    }
    public Integer getAdduserorgid() {
        return this.adduserorgid;
    }
    public void setAdduserorgid(Integer adduserorgid) {
        this.adduserorgid = adduserorgid;
    }
    public String getAddusername() {
        return this.addusername;
    }
    public void setAddusername(String addusername) {
        this.addusername = addusername;
    }
    public Integer getAdduserid() {
        return this.adduserid;
    }
    public void setAdduserid(Integer adduserid) {
        this.adduserid = adduserid;
    }
    public String getOtherctnum() {
        return this.otherctnum;
    }
    public void setOtherctnum(String otherctnum) {
        this.otherctnum = otherctnum;
    }
    public String getCtnum() {
        return this.ctnum;
    }
    public void setCtnum(String ctnum) {
        this.ctnum = ctnum;
    }
    public long getId() {
        return this.id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public int getIspre() {
        return this.ispre;
    }
    public void setIspre(int ispre) {
        this.ispre = ispre;
    }
    public Float getPrepayablemoney() {
        return this.prepayablemoney;
    }
    public void setPrepayablemoney(Float prepayablemoney) {
        this.prepayablemoney = prepayablemoney;
    }
    public Float getPrereceivablemoney() {
        return this.prereceivablemoney;
    }
    public void setPrereceivablemoney(Float prereceivablemoney) {
        this.prereceivablemoney = prereceivablemoney;
    }
    public Float getPremoney() {
        return this.premoney;
    }
    public void setPremoney(Float premoney) {
        this.premoney = premoney;
    }
    @Generated(hash = 914374633)
    public Contract(Float premoney, Float prereceivablemoney,
            Float prepayablemoney, int ispre, long id, String ctnum,
            String otherctnum, Integer adduserid, String addusername,
            Integer adduserorgid, String salername, String salerabbreviation,
            Integer salerid, String buyername, String buyerabbreviation,
            Integer buyerid, Date addtime, Date signdate, String receivecompany,
            Integer receivecompanyid, String sendaddress, String receiveaddress,
            String coaltype, Integer coaltypeid, Integer cttype, String cttypename,
            Float weight, Float totalmoney, Float surplusweight,
            Float surplusmoney, Integer flag, Integer transcompanyid,
            Integer transpaytype, String transcompany, Integer pid, String pnum,
            Integer invoicetype, Integer isaddtax, Float cashmoney,
            String affixtype, String affixurl, String salesman, Integer salesmanid,
            Integer iscoalcheck, Date auditdatetime, String auditusername,
            Integer audituserid, Float rationallossweight, String rationallosstype,
            Integer ctpaytype, String payremark, Float lossweight,
            Integer losstype, Integer settlementtype, Integer ctclassify,
            Integer salecontroltype, Float totalreceivemoney,
            Float receivablemoney, Float totalpaymoney, Float payablemoney,
            String remark, Integer istestrap, Integer status, Integer isis) {
        this.premoney = premoney;
        this.prereceivablemoney = prereceivablemoney;
        this.prepayablemoney = prepayablemoney;
        this.ispre = ispre;
        this.id = id;
        this.ctnum = ctnum;
        this.otherctnum = otherctnum;
        this.adduserid = adduserid;
        this.addusername = addusername;
        this.adduserorgid = adduserorgid;
        this.salername = salername;
        this.salerabbreviation = salerabbreviation;
        this.salerid = salerid;
        this.buyername = buyername;
        this.buyerabbreviation = buyerabbreviation;
        this.buyerid = buyerid;
        this.addtime = addtime;
        this.signdate = signdate;
        this.receivecompany = receivecompany;
        this.receivecompanyid = receivecompanyid;
        this.sendaddress = sendaddress;
        this.receiveaddress = receiveaddress;
        this.coaltype = coaltype;
        this.coaltypeid = coaltypeid;
        this.cttype = cttype;
        this.cttypename = cttypename;
        this.weight = weight;
        this.totalmoney = totalmoney;
        this.surplusweight = surplusweight;
        this.surplusmoney = surplusmoney;
        this.flag = flag;
        this.transcompanyid = transcompanyid;
        this.transpaytype = transpaytype;
        this.transcompany = transcompany;
        this.pid = pid;
        this.pnum = pnum;
        this.invoicetype = invoicetype;
        this.isaddtax = isaddtax;
        this.cashmoney = cashmoney;
        this.affixtype = affixtype;
        this.affixurl = affixurl;
        this.salesman = salesman;
        this.salesmanid = salesmanid;
        this.iscoalcheck = iscoalcheck;
        this.auditdatetime = auditdatetime;
        this.auditusername = auditusername;
        this.audituserid = audituserid;
        this.rationallossweight = rationallossweight;
        this.rationallosstype = rationallosstype;
        this.ctpaytype = ctpaytype;
        this.payremark = payremark;
        this.lossweight = lossweight;
        this.losstype = losstype;
        this.settlementtype = settlementtype;
        this.ctclassify = ctclassify;
        this.salecontroltype = salecontroltype;
        this.totalreceivemoney = totalreceivemoney;
        this.receivablemoney = receivablemoney;
        this.totalpaymoney = totalpaymoney;
        this.payablemoney = payablemoney;
        this.remark = remark;
        this.istestrap = istestrap;
        this.status = status;
        this.isis = isis;
    }
    @Generated(hash = 1343858295)
    public Contract() {
    }
}
